home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / slip / cslip-2.6 / tip / Makefile.virgin < prev    next >
Encoding:
Makefile  |  1991-07-26  |  3.8 KB  |  129 lines

  1. #
  2. # Copyright (c) 1988 The Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    5.6 (Berkeley) 9/28/88
  18. #
  19. # make file for intermachine communications package
  20. #
  21. # Files are:
  22. #    /etc/remote        remote host description file
  23. #    /etc/phones        phone number file, owned by ${OWNER} and
  24. #                  mode 6??
  25. #    ${ADM}/aculog        ACU accounting file, owned by ${OWNER} and
  26. #                  mode 6?? {if ACULOG defined}
  27. # Presently supports:
  28. #    BIZCOMP
  29. #    DEC DF02-AC, DF03-AC
  30. #    DEC DN-11/Able Quadracall
  31. #    HAYES and Hayes emulators
  32. #    USR COURIER (2400 baud)
  33. #    VENTEL 212+
  34. #    VADIC 831 RS232 adaptor
  35. #    VADIC 3451
  36. #    Hayes Smartmodem 2400
  37. #    Telebit Trailblazer
  38. # (drivers are located in libacu.a)
  39. #
  40. # Configuration defines:
  41. #    DF02, DF03, DN11    ACU's supported
  42. #      BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
  43. #      SM2400, TELEBIT
  44. #    ACULOG            turn on tip logging of ACU use
  45. #    PRISTINE        no phone #'s put in ACU log file
  46. #    CONNECT            worthless command
  47. #    DEFBR            default baud rate to make connection at
  48. #    DEFFS            default frame size for FTP buffering of
  49. #                writes on local side
  50. #    BUFSIZ            buffer sizing from stdio, must be fed
  51. #                explicitly to remcap.c if not 1024
  52. #    STREAMS            system has streams tty interface (SunOS 4.0)
  53. ADM=    usr/adm
  54. OWNER=    uucp
  55. GROUP=    daemon
  56. CONFIG=    -DV3451 -DHAYES -DTELEBIT
  57. CFLAGS=    -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DPRISTINE
  58. LDFLAGS=
  59. OBJS=    acu.o cmds.o cmdtab.o cu.o hunt.o \
  60.     log.o partab.o remote.o tip.o tipout.o value.o vars.o \
  61.     login.o slip.o page.o strerror.o
  62. SPECIAL=acutab.c remcap.c uucplock.c
  63. DRIVERS=libacu/*.c
  64. SOURCES=acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c \
  65.     log.c partab.c remote.c tip.c tipout.c value.c vars.c \
  66.     login.c slip.c page.c strerror.c \
  67.     ${SPECIAL} ${DRIVERS}
  68. CXREF=    /usr/ucb/ctags -xw
  69. CC= gcc -g
  70. MAKE= make
  71.  
  72. # Explicitly define compiliation rule since SunOS 4.X's make doesn't like gcc.
  73. .c.o:
  74.     rm -f $@; $(CC) $(CFLAGS) -c $*.c
  75.  
  76. tip:    ${OBJS} acutab.o remcap.o uucplock.o libacu/libacu.a
  77.     ${CC} -o tip ${LDFLAGS} ${OBJS} acutab.o remcap.o uucplock.o \
  78.         libacu/libacu.a
  79.  
  80. ${OBJS}: tip.h
  81.  
  82. remcap.o: remcap.c
  83.     ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c
  84.  
  85. # acutab is configuration dependent, and so depends on the makefile
  86. acutab.o: Makefile
  87. acutab.o: acutab.c
  88.     ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
  89.  
  90. # remote.o depends on the makefile because of DEFBR and DEFFS
  91. remote.o: Makefile
  92.  
  93. # log.o depends on the makefile because of ACULOG
  94. log.o:    Makefile
  95.  
  96. libacu/libacu.a: ${DRIVERS}
  97.     cd libacu; ${MAKE} ${MFLAGS}
  98.  
  99. install: tip
  100. # Can't do this until we fix some security problems
  101. #    install -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip
  102.     install -m 755 tip ${DESTDIR}/usr/bin/tip
  103.     rm -f ${DESTDIR}/usr/bin/cu
  104.     ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
  105. #    cp /dev/null ${DESTDIR}/${ADM}/aculog
  106. #    chown ${OWNER} ${DESTDIR}/${ADM}/aculog
  107. #    chmod 600 ${DESTDIR}/${ADM}/aculog
  108. #    @echo "create /etc/remote and /etc/phones"
  109.  
  110. install-conf:
  111.     install -g slip -m 440 login.script ${DESTDIR}/etc
  112.  
  113. tags:    ${SOURCES} tip.h
  114.     ctags -w ${SOURCES} tip.h
  115.  
  116. clean:
  117.     cd libacu; ${MAKE} ${MFLAGS} clean
  118.     rm -f tip cu *.o
  119.  
  120. print:
  121.     @pr README TODO makefile
  122.     @size *.o | pr -h SIZES
  123.     @${CXREF} tip.h ${SOURCES} | pr -h XREF
  124.     @ls -l | pr 
  125.     @pr tip.h ${SOURCES}
  126.  
  127. lint:
  128.     -lint -hbacvx ${CFLAGS} ${SOURCES}
  129.